package cn.wolfcode.shop.cloud.util;

import cn.wolfcode.shop.cloud.redis.KeyPrefix;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@AllArgsConstructor
public class MemberRedsKeyPrefix implements KeyPrefix {
    private int expireTime;
    private String keyPrefix;

    public static final MemberRedsKeyPrefix USER_TOKEN_KEYPREFIX = new MemberRedsKeyPrefix(1800, "userToken:");

    @Override
    public int getExpireTime() {
        return this.expireTime;
    }

    @Override
    public String getKeyPrefix() {
        return this.keyPrefix;
    }
}
